// Import the functions you need from the SDKs you need
import { initializeApp } from 'firebase/app'
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries

// Your web app's Firebase configuration
const devFirebaseConfig = {
	apiKey: 'AIzaSyDTUG3Y5i_7oQrgIAhMesOx6hAvswSSHgg',
	authDomain: 'upapp-72ed9.firebaseapp.com',
	projectId: 'upapp-72ed9',
	storageBucket: 'upapp-72ed9.appspot.com',
	messagingSenderId: '257867160567',
	appId: '1:257867160567:web:899ac75999caa6af51ecf2'
}

const prodFirebaseConfig = {
	apiKey: 'AIzaSyAfGauyhLEFRpKehYI2vcItz4pFCAiVCvU',
	authDomain: 'auth.2up.net',
	projectId: 'toup-sports',
	storageBucket: 'toup-sports.appspot.com',
	messagingSenderId: '389530827633',
	appId: '1:389530827633:web:13c0f3090b0a9c7ce1d4d0',
	measurementId: 'G-GNE59H3XK8'
}

// eslint-disable-next-line camelcase
const firebaseConfig =
	import.meta.env.VITE_SERVER_ENV !== 'test' ? prodFirebaseConfig : devFirebaseConfig

// Initialize Firebase
export default initializeApp(firebaseConfig)
